package demo.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@NoArgsConstructor
public class Transaction {
	private int id;
	private int customerId;
	private String number;
	private LocalDateTime datestamp;

	private Customer customer;
	private List<POSItem> items;

	public Transaction(int customerId, String number, List<POSItem> items) {
		this.customerId = customerId;
		this.number = number;
		this.items = items;
	}
}
